package com.liyongjian.xhban.dto;

import java.io.Serializable;


@SuppressWarnings("serial")
public class AjaxResponse implements Serializable {

    private boolean success = true;

    private String code = "0000";

    private String msg;

    private Object obj;

    public String getMsg() {
        return msg;
    }



    public AjaxResponse setMsg(String msg) {
        this.success = false;
        this.msg = msg;
        return this;
    }

    public Object getObj() {
        return obj;
    }

    public AjaxResponse setObj(Object obj) {
        this.obj = obj;
        return this;
    }

    public AjaxResponse(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public AjaxResponse(boolean success) {
        super();
        this.success = success;
    }

    public AjaxResponse() {}

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
